3.455 \(\int \cos ^5(c+d x) (a+b \sec (c+d x)) \, dx\)

Optimal. Leaf size=92 \[ \frac{a \sin ^5(c+d x)}{5 d}-\frac{2 a \sin ^3(c+d x)}{3 d}+\frac{a \sin (c+d x)}{d}+\frac{b \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac{3 b \sin (c+d x) \cos (c+d x)}{8 d}+\frac{3 b x}{8} \]

[Out]

(3*b*x)/8 + (a*Sin[c + d*x])/d + (3*b*Cos[c + d*x]*Sin[c + d*x])/(8*d) + (b*Cos[c + d*x]^3*Sin[c + d*x])/(4*d)
 - (2*a*Sin[c + d*x]^3)/(3*d) + (a*Sin[c + d*x]^5)/(5*d)

________________________________________________________________________________________

Rubi [A]  time = 0.0582848, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {3787, 2633, 2635, 8} \[ \frac{a \sin ^5(c+d x)}{5 d}-\frac{2 a \sin ^3(c+d x)}{3 d}+\frac{a \sin (c+d x)}{d}+\frac{b \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac{3 b \sin (c+d x) \cos (c+d x)}{8 d}+\frac{3 b x}{8} \]

Antiderivative was successfully verified.

[In]

Int[Cos[c + d*x]^5*(a + b*Sec[c + d*x]),x]

[Out]

(3*b*x)/8 + (a*Sin[c + d*x])/d + (3*b*Cos[c + d*x]*Sin[c + d*x])/(8*d) + (b*Cos[c + d*x]^3*Sin[c + d*x])/(4*d)
 - (2*a*Sin[c + d*x]^3)/(3*d) + (a*Sin[c + d*x]^5)/(5*d)

Rule 3787

Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)), x_Symbol] :> Dist[a, Int[(d*
Csc[e + f*x])^n, x], x] + Dist[b/d, Int[(d*Csc[e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, d, e, f, n}, x]

Rule 2633

Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> -Dist[d^(-1), Subst[Int[Expand[(1 - x^2)^((n - 1)/2), x], x], x
, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]

Rule 2635

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> -Simp[(b*Cos[c + d*x]*(b*Sin[c + d*x])^(n - 1))/(d*n),
x] + Dist[(b^2*(n - 1))/n, Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integer
Q[2*n]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rubi steps

\begin{align*} \int \cos ^5(c+d x) (a+b \sec (c+d x)) \, dx &=a \int \cos ^5(c+d x) \, dx+b \int \cos ^4(c+d x) \, dx\\ &=\frac{b \cos ^3(c+d x) \sin (c+d x)}{4 d}+\frac{1}{4} (3 b) \int \cos ^2(c+d x) \, dx-\frac{a \operatorname{Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=\frac{a \sin (c+d x)}{d}+\frac{3 b \cos (c+d x) \sin (c+d x)}{8 d}+\frac{b \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac{2 a \sin ^3(c+d x)}{3 d}+\frac{a \sin ^5(c+d x)}{5 d}+\frac{1}{8} (3 b) \int 1 \, dx\\ &=\frac{3 b x}{8}+\frac{a \sin (c+d x)}{d}+\frac{3 b \cos (c+d x) \sin (c+d x)}{8 d}+\frac{b \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac{2 a \sin ^3(c+d x)}{3 d}+\frac{a \sin ^5(c+d x)}{5 d}\\ \end{align*}

Mathematica [A]  time = 0.116753, size = 89, normalized size = 0.97 \[ \frac{a \sin ^5(c+d x)}{5 d}-\frac{2 a \sin ^3(c+d x)}{3 d}+\frac{a \sin (c+d x)}{d}+\frac{3 b (c+d x)}{8 d}+\frac{b \sin (2 (c+d x))}{4 d}+\frac{b \sin (4 (c+d x))}{32 d} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[c + d*x]^5*(a + b*Sec[c + d*x]),x]

[Out]

(3*b*(c + d*x))/(8*d) + (a*Sin[c + d*x])/d - (2*a*Sin[c + d*x]^3)/(3*d) + (a*Sin[c + d*x]^5)/(5*d) + (b*Sin[2*
(c + d*x)])/(4*d) + (b*Sin[4*(c + d*x)])/(32*d)

________________________________________________________________________________________

Maple [A]  time = 0.047, size = 70, normalized size = 0.8 \begin{align*}{\frac{1}{d} \left ({\frac{\sin \left ( dx+c \right ) a}{5} \left ({\frac{8}{3}}+ \left ( \cos \left ( dx+c \right ) \right ) ^{4}+{\frac{4\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}}{3}} \right ) }+b \left ({\frac{\sin \left ( dx+c \right ) }{4} \left ( \left ( \cos \left ( dx+c \right ) \right ) ^{3}+{\frac{3\,\cos \left ( dx+c \right ) }{2}} \right ) }+{\frac{3\,dx}{8}}+{\frac{3\,c}{8}} \right ) \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)^5*(a+b*sec(d*x+c)),x)

[Out]

1/d*(1/5*a*(8/3+cos(d*x+c)^4+4/3*cos(d*x+c)^2)*sin(d*x+c)+b*(1/4*(cos(d*x+c)^3+3/2*cos(d*x+c))*sin(d*x+c)+3/8*
d*x+3/8*c))

________________________________________________________________________________________

Maxima [A]  time = 1.28043, size = 93, normalized size = 1.01 \begin{align*} \frac{32 \,{\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} a + 15 \,{\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} b}{480 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^5*(a+b*sec(d*x+c)),x, algorithm="maxima")

[Out]

1/480*(32*(3*sin(d*x + c)^5 - 10*sin(d*x + c)^3 + 15*sin(d*x + c))*a + 15*(12*d*x + 12*c + sin(4*d*x + 4*c) +
8*sin(2*d*x + 2*c))*b)/d

________________________________________________________________________________________

Fricas [A]  time = 1.70366, size = 173, normalized size = 1.88 \begin{align*} \frac{45 \, b d x +{\left (24 \, a \cos \left (d x + c\right )^{4} + 30 \, b \cos \left (d x + c\right )^{3} + 32 \, a \cos \left (d x + c\right )^{2} + 45 \, b \cos \left (d x + c\right ) + 64 \, a\right )} \sin \left (d x + c\right )}{120 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^5*(a+b*sec(d*x+c)),x, algorithm="fricas")

[Out]

1/120*(45*b*d*x + (24*a*cos(d*x + c)^4 + 30*b*cos(d*x + c)^3 + 32*a*cos(d*x + c)^2 + 45*b*cos(d*x + c) + 64*a)
*sin(d*x + c))/d

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)**5*(a+b*sec(d*x+c)),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [A]  time = 1.20211, size = 208, normalized size = 2.26 \begin{align*} \frac{45 \,{\left (d x + c\right )} b + \frac{2 \,{\left (120 \, a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{9} - 75 \, b \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{9} + 160 \, a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{7} - 30 \, b \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{7} + 464 \, a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{5} + 160 \, a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} + 30 \, b \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} + 120 \, a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 75 \, b \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right )}^{5}}}{120 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^5*(a+b*sec(d*x+c)),x, algorithm="giac")

[Out]

1/120*(45*(d*x + c)*b + 2*(120*a*tan(1/2*d*x + 1/2*c)^9 - 75*b*tan(1/2*d*x + 1/2*c)^9 + 160*a*tan(1/2*d*x + 1/
2*c)^7 - 30*b*tan(1/2*d*x + 1/2*c)^7 + 464*a*tan(1/2*d*x + 1/2*c)^5 + 160*a*tan(1/2*d*x + 1/2*c)^3 + 30*b*tan(
1/2*d*x + 1/2*c)^3 + 120*a*tan(1/2*d*x + 1/2*c) + 75*b*tan(1/2*d*x + 1/2*c))/(tan(1/2*d*x + 1/2*c)^2 + 1)^5)/d